import request from '@/utils/request'

export function getTemplateMapApi(params) {
  return request({
    url: '/core/admin123/mpgenerator/getTemplateMap',
    method: 'GET',
    params
  })
}

export function fetchList(params) {
  return request({
    url: '/core/admin123/template/templateAjax_queryListBySearch',
    method: 'GET',
    params
  })
}

export function createApi(params) {
  return request({
    url: '/core/admin123/template/create',
    method: 'POST',
    params
  })
}

export function updateApi(params) {
  return request({
    url: '/core/admin123/template/update',
    method: 'POST',
    params
  })
}

export function deleteApi(params) {
  return request({
    url: '/core/admin123/template/delete',
    method: 'POST',
    params
  })
}


export function updateTmptColumn(data) {
  return request({
    url: '/core/admin123/coding/a1templatecolumn/updateTmptColumn',
    method: 'POST',
    data
  })
}
